package com.click369.mianshiqingbao.mapper;

import com.click369.mianshiqingbao.pojo.CommentBean;
import com.click369.mianshiqingbao.pojo.CommentBeanExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户评论信息的数据访问接口
 */
public interface CommentBeanMapper {
    long countByExample(CommentBeanExample example);

    int deleteByExample(CommentBeanExample example);

    int deleteByPrimaryKey(Long commentId);

    int insert(CommentBean record);

    int insertSelective(CommentBean record);

    List<CommentBean> selectByExample(CommentBeanExample example);

    CommentBean selectByPrimaryKey(Long commentId);

    int updateByExampleSelective(@Param("record") CommentBean record, @Param("example") CommentBeanExample example);

    int updateByExample(@Param("record") CommentBean record, @Param("example") CommentBeanExample example);

    int updateByPrimaryKeySelective(CommentBean record);

    int updateByPrimaryKey(CommentBean record);
}